home *** CD-ROM | disk | FTP | other *** search
/ Meeting Pearls 4 / Meeting Pearls Vol. IV (1996)(GTI - Schatztruhe)[!].iso / Pearls / dev / Language / ace / include / Exec / devices.h < prev    next >
C/C++ Source or Header  |  1995-10-07  |  1KB  |  60 lines

  1. #ifndef EXEC_DEVICES_H
  2. #define EXEC_DEVICES_H 1
  3. /*
  4. ** devices.h for ACE Basic
  5. **
  6. ** Note: Translated to ACE by ConvertC2ACE
  7. **       @ MapMeadow Software, Nils Sjoholm
  8. **
  9. **
  10. ** Date: 09/02/95
  11. **
  12. **
  13. */
  14.  
  15. /*
  16. ** This are the StructPointer defines for devices.h
  17. */
  18. #ifndef DevicePtr
  19. #define DevicePtr ADDRESS
  20. #endif
  21. #ifndef UnitPtr
  22. #define UnitPtr ADDRESS
  23. #endif
  24. /*
  25. ** End of StructPointer defines for devices.h
  26. */
  27.       
  28. #ifndef EXEC_LIBRARIES_H
  29. #include <exec/libraries.h>
  30. #endif /* EXEC_LIBRARIES_H */
  31.  
  32. #ifndef EXEC_PORTS_H
  33. #include <exec/ports.h>
  34. #endif /* EXEC_PORTS_H */
  35.  
  36.  
  37.  
  38. /****** Device ******************************************************/
  39.  
  40. STRUCT Device  
  41.     _Library dd_Library 
  42. END STRUCT 
  43.  
  44.  
  45. /****** Unit ********************************************************/
  46.  
  47. STRUCT Unit  
  48.     MsgPort unit_MsgPort    /* queue for unprocessed messages */
  49.                     /* instance of msgport is recommended */
  50.     BYTE    unit_flags 
  51.     BYTE    unit_pad 
  52.     SHORTINT   unit_OpenCnt        /* number of active opens */
  53. END STRUCT 
  54.  
  55.  
  56. #define UNITF_ACTIVE    (1)
  57. #define UNITF_INTASK    (2)
  58.  
  59. #endif  /* EXEC_DEVICES_H */
  60.